import { Controller, Injectable, Param, Post } from '@nestjs/common';
import { Index } from '../emr_imp';

@Controller()
export class DocController {

  constructor(
    private readonly baseindex:Index
  ) {
  }

  @Post('doc/settclob')
  async TestClob():Promise<boolean>{
    return this.baseindex.TestClob(1,"123");
    return true;
  }

  @Post('doc/settestclob/:tid')
  async SetTestCLobByTid(@Param('tid') tid:number):Promise<boolean>
  {
    return this.baseindex.SetTestCLobByTid(tid);
  }

  @Post('doc/TransferDocsByPatientId/:patientid')
  async TransferDocsByPatientId(@Param('patientid') patientid:number):Promise<boolean>{
    return this.baseindex.TransferDocsByPatientId(patientid);
  }

}